import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
import router from "./router/index";
import { error, success } from "./message";
Vue.prototype.$error = error
Vue.prototype.$success = success
Vue.prototype.$copy = (val) => JSON.parse(JSON.stringify(val))
Vue.config.productionTip = false

Array.prototype.remove = function (b) {
  var a = this.indexOf(b);
  if (a >= 0) {
    this.splice(a, 1);
    return true;
  }
  return false;
};

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
